{% if reviews %}
    {% for review in reviews %}
        <div class="review-area">
            <div class="header">
                <div class="name"><img src="{{ review.author_image }}" ></div>
                <div class="name">{{ review.author }}</div>
                <div class="rating">
                    {% for i in 1..5 %}
                    <span class="fa fa-stack"><i class="fa fa-star fa-stack-1x {{ review.rating < i ? 'off' }}"></i></span>
                    {% endfor %}
                </div>
                <div class="date">{{ review.date_added }}</div>
            </div>
            <div class="content">{{ review.text }}</div>
            {# 评价图片 #}
			{% if review.images|length > 0 %}
            <div class="review-image-container">
				{% for review_image in review.images %}
					<div class="review-image">
						<img src="{{ helper.image_resize(review_image) }}" alt="review_image"/>
						<div class="mask"><i class="fa fa-eye"></i></div>
					</div>
				{% endfor %}
            </div>
			{% endif %}
        </div>
        {#<table class="table review-block">#}
            {#<tr>#}
                {#<td style="width: 50%;"><strong>{{ review.author }}</strong></td>#}
                {#<td class="text-right">{{ review.date_added }}</td>#}
            {#</tr>#}
            {#<tr>#}
                {#<td colspan="2"><p>{{ review.text }}</p>#}
                    {#<div class="stars-box">#}
                        {#<div class="rating">#}
                            {#{% for i in 1..5 %}#}
                                {#<span class="fa fa-stack"><i class="fa fa-star fa-stack-1x {{ review.rating < i ? 'off' }}"></i></span>#}
                            {#{% endfor %}#}
                        {#</div>#}
                    {#</div>#}
                {#</td>#}
            {#</tr>#}
        {#</table>#}
    {% endfor %}
    <div class="text-right">{{ pagination }}</div>
{% else %}
    <div class="no-review-container">
        <div class="no-reviews"></div>
        <p>{{ text_no_reviews }}</p>
    </div>
{% endif %}

